package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderPaytypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderPaytypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPaytypeIdIsNull() {
            addCriterion("payType_id is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdIsNotNull() {
            addCriterion("payType_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdEqualTo(String value) {
            addCriterion("payType_id =", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdNotEqualTo(String value) {
            addCriterion("payType_id <>", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdGreaterThan(String value) {
            addCriterion("payType_id >", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("payType_id >=", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdLessThan(String value) {
            addCriterion("payType_id <", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdLessThanOrEqualTo(String value) {
            addCriterion("payType_id <=", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdLike(String value) {
            addCriterion("payType_id like", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdNotLike(String value) {
            addCriterion("payType_id not like", value, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdIn(List<String> values) {
            addCriterion("payType_id in", values, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdNotIn(List<String> values) {
            addCriterion("payType_id not in", values, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdBetween(String value1, String value2) {
            addCriterion("payType_id between", value1, value2, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeIdNotBetween(String value1, String value2) {
            addCriterion("payType_id not between", value1, value2, "paytypeId");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameIsNull() {
            addCriterion("payType_name is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameIsNotNull() {
            addCriterion("payType_name is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameEqualTo(String value) {
            addCriterion("payType_name =", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameNotEqualTo(String value) {
            addCriterion("payType_name <>", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameGreaterThan(String value) {
            addCriterion("payType_name >", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameGreaterThanOrEqualTo(String value) {
            addCriterion("payType_name >=", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameLessThan(String value) {
            addCriterion("payType_name <", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameLessThanOrEqualTo(String value) {
            addCriterion("payType_name <=", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameLike(String value) {
            addCriterion("payType_name like", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameNotLike(String value) {
            addCriterion("payType_name not like", value, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameIn(List<String> values) {
            addCriterion("payType_name in", values, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameNotIn(List<String> values) {
            addCriterion("payType_name not in", values, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameBetween(String value1, String value2) {
            addCriterion("payType_name between", value1, value2, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeNameNotBetween(String value1, String value2) {
            addCriterion("payType_name not between", value1, value2, "paytypeName");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1IsNull() {
            addCriterion("payType_other1 is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1IsNotNull() {
            addCriterion("payType_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1EqualTo(String value) {
            addCriterion("payType_other1 =", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1NotEqualTo(String value) {
            addCriterion("payType_other1 <>", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1GreaterThan(String value) {
            addCriterion("payType_other1 >", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1GreaterThanOrEqualTo(String value) {
            addCriterion("payType_other1 >=", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1LessThan(String value) {
            addCriterion("payType_other1 <", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1LessThanOrEqualTo(String value) {
            addCriterion("payType_other1 <=", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1Like(String value) {
            addCriterion("payType_other1 like", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1NotLike(String value) {
            addCriterion("payType_other1 not like", value, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1In(List<String> values) {
            addCriterion("payType_other1 in", values, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1NotIn(List<String> values) {
            addCriterion("payType_other1 not in", values, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1Between(String value1, String value2) {
            addCriterion("payType_other1 between", value1, value2, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther1NotBetween(String value1, String value2) {
            addCriterion("payType_other1 not between", value1, value2, "paytypeOther1");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2IsNull() {
            addCriterion("payType_other2 is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2IsNotNull() {
            addCriterion("payType_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2EqualTo(String value) {
            addCriterion("payType_other2 =", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2NotEqualTo(String value) {
            addCriterion("payType_other2 <>", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2GreaterThan(String value) {
            addCriterion("payType_other2 >", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2GreaterThanOrEqualTo(String value) {
            addCriterion("payType_other2 >=", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2LessThan(String value) {
            addCriterion("payType_other2 <", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2LessThanOrEqualTo(String value) {
            addCriterion("payType_other2 <=", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2Like(String value) {
            addCriterion("payType_other2 like", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2NotLike(String value) {
            addCriterion("payType_other2 not like", value, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2In(List<String> values) {
            addCriterion("payType_other2 in", values, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2NotIn(List<String> values) {
            addCriterion("payType_other2 not in", values, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2Between(String value1, String value2) {
            addCriterion("payType_other2 between", value1, value2, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther2NotBetween(String value1, String value2) {
            addCriterion("payType_other2 not between", value1, value2, "paytypeOther2");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3IsNull() {
            addCriterion("payType_other3 is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3IsNotNull() {
            addCriterion("payType_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3EqualTo(String value) {
            addCriterion("payType_other3 =", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3NotEqualTo(String value) {
            addCriterion("payType_other3 <>", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3GreaterThan(String value) {
            addCriterion("payType_other3 >", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3GreaterThanOrEqualTo(String value) {
            addCriterion("payType_other3 >=", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3LessThan(String value) {
            addCriterion("payType_other3 <", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3LessThanOrEqualTo(String value) {
            addCriterion("payType_other3 <=", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3Like(String value) {
            addCriterion("payType_other3 like", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3NotLike(String value) {
            addCriterion("payType_other3 not like", value, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3In(List<String> values) {
            addCriterion("payType_other3 in", values, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3NotIn(List<String> values) {
            addCriterion("payType_other3 not in", values, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3Between(String value1, String value2) {
            addCriterion("payType_other3 between", value1, value2, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther3NotBetween(String value1, String value2) {
            addCriterion("payType_other3 not between", value1, value2, "paytypeOther3");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4IsNull() {
            addCriterion("payType_other4 is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4IsNotNull() {
            addCriterion("payType_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4EqualTo(Integer value) {
            addCriterion("payType_other4 =", value, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4NotEqualTo(Integer value) {
            addCriterion("payType_other4 <>", value, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4GreaterThan(Integer value) {
            addCriterion("payType_other4 >", value, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("payType_other4 >=", value, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4LessThan(Integer value) {
            addCriterion("payType_other4 <", value, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4LessThanOrEqualTo(Integer value) {
            addCriterion("payType_other4 <=", value, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4In(List<Integer> values) {
            addCriterion("payType_other4 in", values, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4NotIn(List<Integer> values) {
            addCriterion("payType_other4 not in", values, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4Between(Integer value1, Integer value2) {
            addCriterion("payType_other4 between", value1, value2, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("payType_other4 not between", value1, value2, "paytypeOther4");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51IsNull() {
            addCriterion("payType_othe51 is null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51IsNotNull() {
            addCriterion("payType_othe51 is not null");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51EqualTo(Integer value) {
            addCriterion("payType_othe51 =", value, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51NotEqualTo(Integer value) {
            addCriterion("payType_othe51 <>", value, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51GreaterThan(Integer value) {
            addCriterion("payType_othe51 >", value, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51GreaterThanOrEqualTo(Integer value) {
            addCriterion("payType_othe51 >=", value, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51LessThan(Integer value) {
            addCriterion("payType_othe51 <", value, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51LessThanOrEqualTo(Integer value) {
            addCriterion("payType_othe51 <=", value, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51In(List<Integer> values) {
            addCriterion("payType_othe51 in", values, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51NotIn(List<Integer> values) {
            addCriterion("payType_othe51 not in", values, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51Between(Integer value1, Integer value2) {
            addCriterion("payType_othe51 between", value1, value2, "paytypeOthe51");
            return (Criteria) this;
        }

        public Criteria andPaytypeOthe51NotBetween(Integer value1, Integer value2) {
            addCriterion("payType_othe51 not between", value1, value2, "paytypeOthe51");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}